Python tricks for beginners